#pragma once

#include <QObject>  //包含该文件，使用信号和槽
#include <QUdpSocket>
#include <QtNetwork>
#include <winsock2.h>
#include <QMessageBox>
#include <queue>

class RecieveThread : public QObject
{
public:
    ~RecieveThread()
    {
        Stop();
    }

    void udpDataRecieve(int port,char* IPaddr);

    void Stop()
    {
        stopFlag = true;

    }

signals:
    // void UpdataStatus(xxxxxxxxx);

public:
    std::queue<char> *dataTemp;
    unsigned long queueSize;
    SOCKET m_sock;
    bool stopFlag{false};
};
